<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>个人中心</title>
    <link rel="stylesheet" href="/home/css/reset.css">
    <link rel="stylesheet" href="/home/css/head-footer.css">
    <link rel="stylesheet" href="/home/css/user-center.css">
</head>

<body>
{include file='base/header' /}
<div class="user-center-wrap">
    <div class="user-center">
        <div class="bread-nav">
                <span>
                    <a href="javascript:void(0)">首页 ></a>
                </span>
            <span>
                    <a href="javascript:void(0)">用户中心</a>
                </span>
        </div>
        <div class="user-center-main clearfixa">
            {include file='base/menu' /}
            <div class="user-center-right fr">
                <div class="base-data-list data-list data-list data-list-show">
                    <!-- 所有页面右侧标题 -->
                    <p class="user-center-nav-title">
                        客户消费统计
                    </p>

                    <div class="base-data-box">
                        <div class="base-data-box">
                            <div class="table-selecter-box clearfixa">
                                <div class="table-select-item">
                                    <span>年级：</span>
                                    <select name="" id="">
                                        <?php if(!empty($grade)){?>
                                        <?php foreach($grade as $val){?>
                                        <option value="{$val.id}">{$val.title}</option>
                                        <?php }?>
                                        <?php }?>
                                    </select>
                                </div>
                                <div class="table-select-look">条件查询</div>
                            </div>
                            <table class="table-title">
                                <tr>
                                    <th>用户姓名</th>
                                    <th>用户性别</th>
                                    <th>用户账号</th>
                                    <th>年级</th>
                                    <th>出生日期</th>
                                    <th>所在地区</th>
                                    <th>注册日期</th>
                                    <th>会员类型</th>
                                    <th>消费金额</th>
                                </tr>
                                <?php if(!empty($data)){?>
                                <?php foreach($data as $k=>$v){ ?>
                            <tr>
                                <td><?php echo$v['nickname'] ?></td>
                                <td>
                                    {if $v['sex'] eq 1}
                                    男
                                    {else/}
                                    女
                                    {/if}
                                </td>
                                <td><?php echo$v['phone'] ?></td>
                                <td><?php echo$v['grade_name'] ?></td>
                                <td><?php echo$v['birth'] ?></td>
                                <td><?php echo$v['province_name'] ?></td>
                                <td><?php echo$v['add_time'] ?></td>
                                <td>
                                    {if $v['is_msjt_vip'] eq 1}
                                    vip
                                    {else/}
                                    普通用户
                                    {/if}
                                </td>
                                <td>{$v.type}</td>
                            </tr>
                            <?php } ?>
                                <?php } ?>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{include file='base/footer' /}
</body>

</html>